gcc-mingw32 software package provides GNU Compiler Collection for MinGW32 (transition package), you can install in your Ubuntu 12.04 LTS (Precise Pangolin) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install gcc-mingw32
gcc-mingw32 is installed in your system.
Make ensure the gcc-mingw32 package were installed using the commands given below,
$ sudo dpkg-query -l | grep gcc-mingw32 *
You will get with gcc-mingw32 package name, version, architecture and description in a table
| Distro | Ubuntu 12 04 lts precise pangolin |
| Section | Development |
| Package | gcc-mingw32 |
| Version | 4.6.3-1ubuntu5+5ubuntu1 |
| Description | GNU Compiler Collection for MinGW32 (transition package) |
| Sub Section | devel |